﻿using System.Collections.Generic;
using Model_SSResourceManager;

namespace Presenter_SSResourceManager
{
    public class PresenterResourcesView
    {
        private readonly ModelsManager _mModel;
        private readonly IViewResources _viewResources;
      
        public PresenterResourcesView(IViewResources view)
        {
            this._viewResources = view;
            _mModel = ModelInstanse.Get();
        }

        public void Refresh(bool showActive)
        {
            _viewResources.ShowResourcesList(_mModel.resourceModel.GetAll(showActive));
        }

    }
}
